<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<h:outputStylesheet name="css.css" library="css" />
	<title>日報管理</title>
</h:head>
<h:body>
	<div class="topnav">
		<div class="welcome">
			<h:form>
				<span>こんにちは #{sessionBean.loginStaff.formalName}! </span>
				<p:commandLink value="ログアウト" action="#{logoutController.logout}" style="color: blue;font-size: 10pt;"/>
			</h:form>
		</div>
		<div class="date">
			<h:outputText value="#{mainController.nowDate}">
				<f:convertDateTime pattern="yyyy年M月d日（E）" locale="ja_JP"/>
			</h:outputText>
		</div>
	</div>
	<div class="head">
		<div>
			<h:graphicImage name="logo.gif" library="images" />
		</div>
		<div class="title">
			<span>Educomチーム日報管理システム</span>
		</div>
	</div>
	<div class="menu">
		<h:form>
			<p:tabMenu activeIndex="#{sessionBean.selectMenuIndex}">
				<c:forEach items="#{sessionBean.menuList}" var="menu">
					<p:menuitem value="#{menu.explanation}" immediate="true" action="#{mainController.selectMenu(menu)}"/>
				</c:forEach>
			</p:tabMenu>
		</h:form>
	</div>
	<div class="content" align="center">
		<ui:insert name="content">content</ui:insert>
	</div>
	<div class="ajaxloading">
		<p:ajaxStatus style="width:16px;height:16px;" id="ajaxStatusPanel">  
		    <f:facet name="start">  
		        <h:graphicImage name="ajaxloading.gif" library="images"/>  
		    </f:facet>
		    <f:facet name="complete">  
		        <h:outputText value="" />  
		    </f:facet> 
		</p:ajaxStatus>
	</div>
</h:body>
</html>